#this is used to workaround an issue in pcb not accepting pin numbers containing lettters

#first we translate the pin numbers for Q25 - Q28 which are TO92
sed -i 's/Q2\([5-8]\)-E/Q2\1-1/g' lamps.net
sed -i 's/Q2\([5-8]\)-B/Q2\1-2/g' lamps.net
sed -i 's/Q2\([5-8]\)-C/Q2\1-3/g' lamps.net

#then we translate all other transistors (which are TO126)
sed -i 's/\(Q..\)-E/\1-1/g' lamps.net
sed -i 's/\(Q..\)-C/\1-2/g' lamps.net
sed -i 's/\(Q..\)-B/\1-3/g' lamps.net

sed -i 's/\(Q.\)-E/\1-1/g' lamps.net
sed -i 's/\(Q.\)-C/\1-2/g' lamps.net
sed -i 's/\(Q.\)-B/\1-3/g' lamps.net

